.class public Lcom/esfile/screen/recorder/media/a;
.super Ljava/lang/Object;
.source "DuCutter.java"


# annotations
.annotation build Landroid/annotation/TargetApi;
    value = 0x15
.end annotation

.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/esfile/screen/recorder/media/a$g;
    }
.end annotation


# instance fields
.field private a:Z

.field private b:Ljava/lang/String;

.field private c:Ljava/lang/String;

.field private final d:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Landroid/util/Pair<",
            "Ljava/lang/Long;",
            "Ljava/lang/Long;",
            ">;>;"
        }
    .end annotation
.end field

.field private e:F

.field private f:Z

.field private g:J

.field private h:J

.field private i:Lcom/esfile/screen/recorder/media/a$g;

.field private j:Lcom/esfile/screen/recorder/media/c;

.field private k:I

.field private l:I

.field private final m:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Les/ba;",
            ">;"
        }
    .end annotation
.end field

.field private final n:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Les/g8;",
            ">;"
        }
    .end annotation
.end field

.field private final o:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Les/s7;",
            ">;"
        }
    .end annotation
.end field

.field private final p:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Les/da;",
            ">;"
        }
    .end annotation
.end field

.field private q:I

.field private r:I

.field private s:I

.field private t:I

.field private u:Z

.field private v:Landroid/graphics/RectF;

.field private w:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/esfile/screen/recorder/media/c$f;",
            ">;"
        }
    .end annotation
.end field

.field private x:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/esfile/screen/recorder/media/c$f;",
            ">;"
        }
    .end annotation
.end field

.field private y:Lcom/esfile/screen/recorder/media/c$g;

.field private z:Landroid/os/Handler;


# direct methods
.method public constructor <init>()V
    .locals 2

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x0

    .line 2
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/media/a;->a:Z

    .line 3
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    iput-object v1, p0, Lcom/esfile/screen/recorder/media/a;->d:Ljava/util/List;

    const/high16 v1, 0x3f800000    # 1.0f

    .line 4
    iput v1, p0, Lcom/esfile/screen/recorder/media/a;->e:F

    const/4 v1, 0x1

    .line 5
    iput-boolean v1, p0, Lcom/esfile/screen/recorder/media/a;->f:Z

    .line 6
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    iput-object v1, p0, Lcom/esfile/screen/recorder/media/a;->m:Ljava/util/List;

    .line 7
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    iput-object v1, p0, Lcom/esfile/screen/recorder/media/a;->n:Ljava/util/List;

    .line 8
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    iput-object v1, p0, Lcom/esfile/screen/recorder/media/a;->o:Ljava/util/List;

    .line 9
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    iput-object v1, p0, Lcom/esfile/screen/recorder/media/a;->p:Ljava/util/List;

    const/4 v1, -0x1

    .line 10
    iput v1, p0, Lcom/esfile/screen/recorder/media/a;->q:I

    .line 11
    iput v1, p0, Lcom/esfile/screen/recorder/media/a;->r:I

    .line 12
    iput v1, p0, Lcom/esfile/screen/recorder/media/a;->s:I

    .line 13
    iput v0, p0, Lcom/esfile/screen/recorder/media/a;->t:I

    .line 14
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/esfile/screen/recorder/media/a;->w:Ljava/util/List;

    .line 15
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/esfile/screen/recorder/media/a;->x:Ljava/util/List;

    .line 16
    new-instance v0, Lcom/esfile/screen/recorder/media/a$f;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/media/a$f;-><init>(Lcom/esfile/screen/recorder/media/a;)V

    iput-object v0, p0, Lcom/esfile/screen/recorder/media/a;->y:Lcom/esfile/screen/recorder/media/c$g;

    .line 17
    :try_start_0
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-static {}, Landroid/os/Environment;->getExternalStorageDirectory()Ljava/io/File;

    move-result-object v1

    invoke-virtual {v1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "/cut.tmp"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/esfile/screen/recorder/media/a;->c:Ljava/lang/String;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    return-void
.end method

.method private a(Ljava/lang/Object;JJLcom/esfile/screen/recorder/media/util/ScaleTypeUtil$ScaleType;Z)Lcom/esfile/screen/recorder/media/c$f;
    .locals 17

    move-object/from16 v0, p1

    const/4 v1, 0x0

    if-eqz v0, :cond_4

    .line 44
    instance-of v2, v0, Landroid/graphics/Bitmap;

    if-nez v2, :cond_1

    instance-of v2, v0, Les/h8;

    if-eqz v2, :cond_0

    goto :goto_0

    :cond_0
    move-object/from16 v14, p0

    move-object v2, v1

    goto :goto_1

    .line 45
    :cond_1
    :goto_0
    new-instance v2, Lcom/esfile/screen/recorder/media/c$f;

    move-object/from16 v14, p0

    iget-object v4, v14, Lcom/esfile/screen/recorder/media/a;->b:Ljava/lang/String;

    const-wide/16 v5, 0x3e8

    mul-long v7, p2, v5

    mul-long v9, p4, v5

    const/high16 v11, 0x3f800000    # 1.0f

    const/4 v12, 0x0

    const/4 v13, 0x0

    const/4 v15, 0x1

    const/16 v16, 0x0

    move-object v3, v2

    move-wide v5, v7

    move-wide v7, v9

    move v9, v11

    move v10, v12

    move-object v11, v13

    move v12, v15

    move-object/from16 v13, v16

    invoke-direct/range {v3 .. v13}, Lcom/esfile/screen/recorder/media/c$f;-><init>(Ljava/lang/Object;JJFILandroid/graphics/RectF;ZLjava/util/List;)V

    const/16 v3, 0x10

    .line 46
    iput v3, v2, Lcom/esfile/screen/recorder/media/c$f;->b:I

    :goto_1
    if-eqz v2, :cond_3

    .line 47
    iput-object v0, v2, Lcom/esfile/screen/recorder/media/c$f;->a:Ljava/lang/Object;

    const/4 v0, 0x0

    .line 48
    iput-boolean v0, v2, Lcom/esfile/screen/recorder/media/c$f;->m:Z

    .line 49
    iput-boolean v0, v2, Lcom/esfile/screen/recorder/media/c$f;->n:Z

    move-object/from16 v0, p6

    .line 50
    iput-object v0, v2, Lcom/esfile/screen/recorder/media/c$f;->o:Lcom/esfile/screen/recorder/media/util/ScaleTypeUtil$ScaleType;

    if-eqz p7, :cond_2

    .line 51
    new-instance v0, Les/b8;

    invoke-direct {v0}, Les/b8;-><init>()V

    const-wide/16 v3, 0x0

    .line 52
    invoke-static {v3, v4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v1

    const-wide/32 v3, 0xf4240

    invoke-static {v3, v4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v3

    invoke-static {v1, v3}, Landroid/util/Pair;->create(Ljava/lang/Object;Ljava/lang/Object;)Landroid/util/Pair;

    move-result-object v1

    iput-object v1, v0, Les/b8;->c:Landroid/util/Pair;

    const-string v1, "TransparencyChangeFilter"

    .line 53
    iput-object v1, v0, Les/b8;->a:Ljava/lang/String;

    .line 54
    iput-object v0, v2, Lcom/esfile/screen/recorder/media/c$f;->l:Les/b8;

    goto :goto_2

    .line 55
    :cond_2
    iput-object v1, v2, Lcom/esfile/screen/recorder/media/c$f;->l:Les/b8;

    :cond_3
    :goto_2
    move-object v1, v2

    goto :goto_3

    :cond_4
    move-object/from16 v14, p0

    :goto_3
    return-object v1
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/media/a;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/media/a;->j()V

    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/media/a;I)V
    .locals 0

    .line 4
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/media/a;->c(I)V

    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/media/a;Ljava/lang/Exception;)V
    .locals 0

    .line 3
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/media/a;->a(Ljava/lang/Exception;)V

    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/media/a;Ljava/lang/String;J)V
    .locals 0

    .line 2
    invoke-direct {p0, p1, p2, p3}, Lcom/esfile/screen/recorder/media/a;->a(Ljava/lang/String;J)V

    return-void
.end method

.method private declared-synchronized a(Ljava/lang/Exception;)V
    .locals 3

    monitor-enter p0

    const/4 v0, 0x0

    .line 67
    :try_start_0
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/media/a;->a:Z

    .line 68
    iget-object v0, p0, Lcom/esfile/screen/recorder/media/a;->i:Lcom/esfile/screen/recorder/media/a$g;

    if-eqz v0, :cond_0

    .line 69
    iget-object v1, p0, Lcom/esfile/screen/recorder/media/a;->z:Landroid/os/Handler;

    new-instance v2, Lcom/esfile/screen/recorder/media/a$e;

    invoke-direct {v2, p0, v0, p1}, Lcom/esfile/screen/recorder/media/a$e;-><init>(Lcom/esfile/screen/recorder/media/a;Lcom/esfile/screen/recorder/media/a$g;Ljava/lang/Exception;)V

    invoke-virtual {v1, v2}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 70
    :cond_0
    monitor-exit p0

    return-void

    :catchall_0
    move-exception p1

    monitor-exit p0

    throw p1
.end method

.method private declared-synchronized a(Ljava/lang/String;J)V
    .locals 8

    monitor-enter p0

    const/4 v0, 0x0

    .line 63
    :try_start_0
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/media/a;->a:Z

    .line 64
    iget-object v3, p0, Lcom/esfile/screen/recorder/media/a;->i:Lcom/esfile/screen/recorder/media/a$g;

    if-eqz v3, :cond_0

    .line 65
    iget-object v0, p0, Lcom/esfile/screen/recorder/media/a;->z:Landroid/os/Handler;

    new-instance v7, Lcom/esfile/screen/recorder/media/a$c;

    move-object v1, v7

    move-object v2, p0

    move-object v4, p1

    move-wide v5, p2

    invoke-direct/range {v1 .. v6}, Lcom/esfile/screen/recorder/media/a$c;-><init>(Lcom/esfile/screen/recorder/media/a;Lcom/esfile/screen/recorder/media/a$g;Ljava/lang/String;J)V

    invoke-virtual {v0, v7}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 66
    :cond_0
    monitor-exit p0

    return-void

    :catchall_0
    move-exception p1

    monitor-exit p0

    throw p1
.end method

.method private static a(Ljava/lang/String;Ljava/lang/String;)V
    .locals 1

    const-string v0, "media_sdk"

    .line 5
    invoke-static {v0, p0, p1}, Les/la;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method static synthetic b(Lcom/esfile/screen/recorder/media/a;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/media/a;->i()V

    return-void
.end method

.method private declared-synchronized c(I)V
    .locals 3

    monitor-enter p0

    .line 31
    :try_start_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/media/a;->i:Lcom/esfile/screen/recorder/media/a$g;

    if-eqz v0, :cond_0

    .line 32
    iget-object v1, p0, Lcom/esfile/screen/recorder/media/a;->z:Landroid/os/Handler;

    new-instance v2, Lcom/esfile/screen/recorder/media/a$b;

    invoke-direct {v2, p0, v0, p1}, Lcom/esfile/screen/recorder/media/a$b;-><init>(Lcom/esfile/screen/recorder/media/a;Lcom/esfile/screen/recorder/media/a$g;I)V

    invoke-virtual {v1, v2}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 33
    :cond_0
    monitor-exit p0

    return-void

    :catchall_0
    move-exception p1

    monitor-exit p0

    throw p1
.end method

.method private c(Ljava/lang/String;)V
    .locals 7

    .line 1
    new-instance v0, Landroid/media/MediaMetadataRetriever;

    invoke-direct {v0}, Landroid/media/MediaMetadataRetriever;-><init>()V

    const/4 v1, 0x1

    .line 2
    iput-boolean v1, p0, Lcom/esfile/screen/recorder/media/a;->f:Z

    const/4 v2, 0x0

    .line 3
    :try_start_0
    invoke-virtual {v0, p1}, Landroid/media/MediaMetadataRetriever;->setDataSource(Ljava/lang/String;)V

    const/16 v3, 0x9

    .line 4
    invoke-virtual {v0, v3}, Landroid/media/MediaMetadataRetriever;->extractMetadata(I)Ljava/lang/String;

    move-result-object v3

    .line 5
    invoke-static {v3}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v3

    int-to-long v3, v3

    iput-wide v3, p0, Lcom/esfile/screen/recorder/media/a;->g:J

    .line 6
    invoke-static {p1}, Lcom/esfile/screen/recorder/media/util/u;->a(Ljava/lang/String;)[Landroid/media/MediaFormat;

    move-result-object p1

    .line 7
    aget-object v1, p1, v1

    if-nez v1, :cond_0

    const-string v1, "unsupport_video"

    const-string v3, "NoVideoTrack"

    .line 8
    invoke-static {v1, v3}, Lcom/esfile/screen/recorder/media/a;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 9
    iput-boolean v2, p0, Lcom/esfile/screen/recorder/media/a;->f:Z

    goto :goto_1

    :cond_0
    const-string v3, "rotation-degrees"

    .line 10
    invoke-static {v1, v3, v2}, Lcom/esfile/screen/recorder/media/util/s;->a(Landroid/media/MediaFormat;Ljava/lang/String;I)I

    move-result v3
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    const/16 v4, 0x5a

    const-string v5, "width"

    const-string v6, "height"

    if-eq v3, v4, :cond_2

    const/16 v4, 0x10e

    if-ne v3, v4, :cond_1

    goto :goto_0

    .line 11
    :cond_1
    :try_start_1
    invoke-virtual {v1, v5}, Landroid/media/MediaFormat;->getInteger(Ljava/lang/String;)I

    move-result v3

    iput v3, p0, Lcom/esfile/screen/recorder/media/a;->k:I

    .line 12
    invoke-virtual {v1, v6}, Landroid/media/MediaFormat;->getInteger(Ljava/lang/String;)I

    move-result v1

    iput v1, p0, Lcom/esfile/screen/recorder/media/a;->l:I

    goto :goto_1

    .line 13
    :cond_2
    :goto_0
    invoke-virtual {v1, v6}, Landroid/media/MediaFormat;->getInteger(Ljava/lang/String;)I

    move-result v3

    iput v3, p0, Lcom/esfile/screen/recorder/media/a;->k:I

    .line 14
    invoke-virtual {v1, v5}, Landroid/media/MediaFormat;->getInteger(Ljava/lang/String;)I

    move-result v1

    iput v1, p0, Lcom/esfile/screen/recorder/media/a;->l:I

    .line 15
    :goto_1
    aget-object p1, p1, v2
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 16
    :goto_2
    :try_start_2
    invoke-virtual {v0}, Landroid/media/MediaMetadataRetriever;->release()V
    :try_end_2
    .catch Ljava/lang/RuntimeException; {:try_start_2 .. :try_end_2} :catch_1

    goto :goto_3

    :catchall_0
    move-exception p1

    goto :goto_4

    .line 17
    :catch_0
    :try_start_3
    iput-boolean v2, p0, Lcom/esfile/screen/recorder/media/a;->f:Z
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    goto :goto_2

    :catch_1
    :goto_3
    return-void

    .line 18
    :goto_4
    :try_start_4
    invoke-virtual {v0}, Landroid/media/MediaMetadataRetriever;->release()V
    :try_end_4
    .catch Ljava/lang/RuntimeException; {:try_start_4 .. :try_end_4} :catch_2

    .line 19
    :catch_2
    goto :goto_6

    :goto_5
    throw p1

    :goto_6
    goto :goto_5
.end method

.method private h()V
    .locals 2

    .line 1
    invoke-static {}, Landroid/os/Looper;->myLooper()Landroid/os/Looper;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 2
    new-instance v1, Landroid/os/Handler;

    invoke-direct {v1, v0}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V

    iput-object v1, p0, Lcom/esfile/screen/recorder/media/a;->z:Landroid/os/Handler;

    goto :goto_0

    .line 3
    :cond_0
    new-instance v0, Landroid/os/Handler;

    invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;

    move-result-object v1

    invoke-direct {v0, v1}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V

    iput-object v0, p0, Lcom/esfile/screen/recorder/media/a;->z:Landroid/os/Handler;

    :goto_0
    return-void
.end method

.method private declared-synchronized i()V
    .locals 3

    monitor-enter p0

    const/4 v0, 0x0

    .line 1
    :try_start_0
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/media/a;->a:Z

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/media/a;->i:Lcom/esfile/screen/recorder/media/a$g;

    if-eqz v0, :cond_0

    .line 3
    iget-object v1, p0, Lcom/esfile/screen/recorder/media/a;->z:Landroid/os/Handler;

    new-instance v2, Lcom/esfile/screen/recorder/media/a$d;

    invoke-direct {v2, p0, v0}, Lcom/esfile/screen/recorder/media/a$d;-><init>(Lcom/esfile/screen/recorder/media/a;Lcom/esfile/screen/recorder/media/a$g;)V

    invoke-virtual {v1, v2}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 4
    :cond_0
    monitor-exit p0

    return-void

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method private declared-synchronized j()V
    .locals 3

    monitor-enter p0

    .line 1
    :try_start_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/media/a;->i:Lcom/esfile/screen/recorder/media/a$g;

    if-eqz v0, :cond_0

    .line 2
    iget-object v1, p0, Lcom/esfile/screen/recorder/media/a;->z:Landroid/os/Handler;

    new-instance v2, Lcom/esfile/screen/recorder/media/a$a;

    invoke-direct {v2, p0, v0}, Lcom/esfile/screen/recorder/media/a$a;-><init>(Lcom/esfile/screen/recorder/media/a;Lcom/esfile/screen/recorder/media/a$g;)V

    invoke-virtual {v1, v2}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 3
    :cond_0
    monitor-exit p0

    return-void

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method


# virtual methods
.method public declared-synchronized a(JJ)J
    .locals 1

    monitor-enter p0

    .line 11
    :try_start_0
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/media/a;->a:Z

    if-eqz v0, :cond_0

    .line 12
    iget-wide p1, p0, Lcom/esfile/screen/recorder/media/a;->h:J
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit p0

    return-wide p1

    .line 13
    :cond_0
    :try_start_1
    new-instance v0, Landroid/util/Pair;

    invoke-static {p1, p2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object p1

    invoke-static {p3, p4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object p2

    invoke-direct {v0, p1, p2}, Landroid/util/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V

    invoke-virtual {p0, v0}, Lcom/esfile/screen/recorder/media/a;->b(Landroid/util/Pair;)J

    move-result-wide p1
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    monitor-exit p0

    return-wide p1

    :catchall_0
    move-exception p1

    monitor-exit p0

    throw p1
.end method

.method public declared-synchronized a(Landroid/util/Pair;)J
    .locals 8
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/util/Pair<",
            "Ljava/lang/Long;",
            "Ljava/lang/Long;",
            ">;)J"
        }
    .end annotation

    monitor-enter p0

    .line 14
    :try_start_0
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/media/a;->a:Z

    if-eqz v0, :cond_0

    .line 15
    iget-wide v0, p0, Lcom/esfile/screen/recorder/media/a;->h:J
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit p0

    return-wide v0

    :cond_0
    const-wide/16 v0, 0x0

    if-eqz p1, :cond_5

    .line 16
    :try_start_1
    iget-object v2, p1, Landroid/util/Pair;->first:Ljava/lang/Object;

    check-cast v2, Ljava/lang/Long;

    .line 17
    invoke-virtual {v2}, Ljava/lang/Long;->longValue()J

    move-result-wide v2

    iget-wide v4, p0, Lcom/esfile/screen/recorder/media/a;->g:J

    cmp-long v6, v2, v4

    if-gtz v6, :cond_5

    iget-object v2, p1, Landroid/util/Pair;->first:Ljava/lang/Object;

    check-cast v2, Ljava/lang/Long;

    .line 18
    invoke-virtual {v2}, Ljava/lang/Long;->longValue()J

    move-result-wide v2

    iget-object v4, p1, Landroid/util/Pair;->second:Ljava/lang/Object;

    check-cast v4, Ljava/lang/Long;

    invoke-virtual {v4}, Ljava/lang/Long;->longValue()J

    move-result-wide v4

    cmp-long v6, v2, v4

    if-ltz v6, :cond_1

    goto :goto_1

    .line 19
    :cond_1
    iget-object v2, p1, Landroid/util/Pair;->first:Ljava/lang/Object;

    check-cast v2, Ljava/lang/Long;

    invoke-virtual {v2}, Ljava/lang/Long;->longValue()J

    move-result-wide v2

    invoke-static {v2, v3, v0, v1}, Ljava/lang/Math;->max(JJ)J

    move-result-wide v2

    .line 20
    iget-object v4, p1, Landroid/util/Pair;->second:Ljava/lang/Object;

    check-cast v4, Ljava/lang/Long;

    invoke-virtual {v4}, Ljava/lang/Long;->longValue()J

    move-result-wide v4

    cmp-long v6, v4, v0

    if-gez v6, :cond_2

    iget-wide v0, p0, Lcom/esfile/screen/recorder/media/a;->g:J

    goto :goto_0

    :cond_2
    iget-object v0, p1, Landroid/util/Pair;->second:Ljava/lang/Object;

    check-cast v0, Ljava/lang/Long;

    .line 21
    invoke-virtual {v0}, Ljava/lang/Long;->longValue()J

    move-result-wide v0

    iget-wide v4, p0, Lcom/esfile/screen/recorder/media/a;->g:J

    invoke-static {v0, v1, v4, v5}, Ljava/lang/Math;->min(JJ)J

    move-result-wide v0

    .line 22
    :goto_0
    iget-wide v4, p0, Lcom/esfile/screen/recorder/media/a;->h:J

    sub-long v6, v0, v2

    add-long/2addr v4, v6

    iput-wide v4, p0, Lcom/esfile/screen/recorder/media/a;->h:J

    .line 23
    iget-object v4, p1, Landroid/util/Pair;->first:Ljava/lang/Object;

    check-cast v4, Ljava/lang/Long;

    invoke-virtual {v4}, Ljava/lang/Long;->longValue()J

    move-result-wide v4

    cmp-long v6, v2, v4

    if-nez v6, :cond_3

    iget-object v4, p1, Landroid/util/Pair;->second:Ljava/lang/Object;

    check-cast v4, Ljava/lang/Long;

    invoke-virtual {v4}, Ljava/lang/Long;->longValue()J

    move-result-wide v4

    cmp-long v6, v0, v4

    if-eqz v6, :cond_4

    .line 24
    :cond_3
    new-instance p1, Landroid/util/Pair;

    invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v2

    invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v0

    invoke-direct {p1, v2, v0}, Landroid/util/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V

    .line 25
    :cond_4
    iget-object v0, p0, Lcom/esfile/screen/recorder/media/a;->d:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 26
    iget-wide v0, p0, Lcom/esfile/screen/recorder/media/a;->h:J
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    monitor-exit p0

    return-wide v0

    .line 27
    :cond_5
    :goto_1
    :try_start_2
    iget-object p1, p0, Lcom/esfile/screen/recorder/media/a;->d:Ljava/util/List;

    invoke-interface {p1}, Ljava/util/List;->isEmpty()Z

    move-result p1

    if-eqz p1, :cond_6

    .line 28
    iget-object p1, p0, Lcom/esfile/screen/recorder/media/a;->d:Ljava/util/List;

    new-instance v2, Landroid/util/Pair;

    invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v0

    iget-wide v3, p0, Lcom/esfile/screen/recorder/media/a;->g:J

    invoke-static {v3, v4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v1

    invoke-direct {v2, v0, v1}, Landroid/util/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V

    invoke-interface {p1, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 29
    iget-wide v0, p0, Lcom/esfile/screen/recorder/media/a;->g:J

    iput-wide v0, p0, Lcom/esfile/screen/recorder/media/a;->h:J

    .line 30
    :cond_6
    iget-wide v0, p0, Lcom/esfile/screen/recorder/media/a;->h:J
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    monitor-exit p0

    return-wide v0

    :catchall_0
    move-exception p1

    monitor-exit p0

    throw p1
.end method

.method public declared-synchronized a()V
    .locals 1

    monitor-enter p0

    .line 56
    :try_start_0
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/media/a;->a:Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-nez v0, :cond_0

    .line 57
    monitor-exit p0

    return-void

    :cond_0
    const/4 v0, 0x0

    .line 58
    :try_start_1
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/media/a;->a:Z

    .line 59
    iget-object v0, p0, Lcom/esfile/screen/recorder/media/a;->j:Lcom/esfile/screen/recorder/media/c;

    if-eqz v0, :cond_1

    .line 60
    iget-object v0, p0, Lcom/esfile/screen/recorder/media/a;->j:Lcom/esfile/screen/recorder/media/c;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/media/c;->a()V

    const/4 v0, 0x0

    .line 61
    iput-object v0, p0, Lcom/esfile/screen/recorder/media/a;->j:Lcom/esfile/screen/recorder/media/c;
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 62
    :cond_1
    monitor-exit p0

    return-void

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public declared-synchronized a(F)V
    .locals 1

    monitor-enter p0

    const/4 v0, 0x0

    cmpg-float v0, p1, v0

    if-ltz v0, :cond_0

    .line 31
    :try_start_0
    iput p1, p0, Lcom/esfile/screen/recorder/media/a;->e:F
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 32
    monitor-exit p0

    return-void

    :catchall_0
    move-exception p1

    goto :goto_0

    .line 33
    :cond_0
    :try_start_1
    new-instance p1, Ljava/lang/IllegalArgumentException;

    const-string v0, "Make sure volume >= 0"

    invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw p1
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    :goto_0
    monitor-exit p0

    throw p1
.end method

.method public a(I)V
    .locals 0

    .line 36
    iput p1, p0, Lcom/esfile/screen/recorder/media/a;->q:I

    return-void
.end method

.method public a(II)V
    .locals 0

    .line 37
    iput p1, p0, Lcom/esfile/screen/recorder/media/a;->r:I

    .line 38
    iput p2, p0, Lcom/esfile/screen/recorder/media/a;->s:I

    return-void
.end method

.method public a(Landroid/graphics/RectF;Z)V
    .locals 0

    .line 39
    iput-boolean p2, p0, Lcom/esfile/screen/recorder/media/a;->u:Z

    .line 40
    iput-object p1, p0, Lcom/esfile/screen/recorder/media/a;->v:Landroid/graphics/RectF;

    return-void
.end method

.method public declared-synchronized a(Lcom/esfile/screen/recorder/media/a$g;)V
    .locals 0

    monitor-enter p0

    .line 6
    :try_start_0
    iput-object p1, p0, Lcom/esfile/screen/recorder/media/a;->i:Lcom/esfile/screen/recorder/media/a$g;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 7
    monitor-exit p0

    return-void

    :catchall_0
    move-exception p1

    monitor-exit p0

    throw p1
.end method

.method public a(Ljava/lang/Object;J)V
    .locals 6

    .line 41
    sget-object v4, Lcom/esfile/screen/recorder/media/util/ScaleTypeUtil$ScaleType;->FIT_XY:Lcom/esfile/screen/recorder/media/util/ScaleTypeUtil$ScaleType;

    const/4 v5, 0x1

    move-object v0, p0

    move-object v1, p1

    move-wide v2, p2

    invoke-virtual/range {v0 .. v5}, Lcom/esfile/screen/recorder/media/a;->a(Ljava/lang/Object;JLcom/esfile/screen/recorder/media/util/ScaleTypeUtil$ScaleType;Z)V

    return-void
.end method

.method public a(Ljava/lang/Object;JLcom/esfile/screen/recorder/media/util/ScaleTypeUtil$ScaleType;Z)V
    .locals 8

    const-wide/16 v2, 0x0

    move-object v0, p0

    move-object v1, p1

    move-wide v4, p2

    move-object v6, p4

    move v7, p5

    .line 42
    invoke-direct/range {v0 .. v7}, Lcom/esfile/screen/recorder/media/a;->a(Ljava/lang/Object;JJLcom/esfile/screen/recorder/media/util/ScaleTypeUtil$ScaleType;Z)Lcom/esfile/screen/recorder/media/c$f;

    move-result-object p1

    if-eqz p1, :cond_0

    .line 43
    iget-object p2, p0, Lcom/esfile/screen/recorder/media/a;->w:Ljava/util/List;

    const/4 p3, 0x0

    invoke-interface {p2, p3, p1}, Ljava/util/List;->add(ILjava/lang/Object;)V

    :cond_0
    return-void
.end method

.method public declared-synchronized a(Ljava/lang/String;)V
    .locals 1

    monitor-enter p0

    .line 8
    :try_start_0
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 9
    iput-object p1, p0, Lcom/esfile/screen/recorder/media/a;->c:Ljava/lang/String;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 10
    :cond_0
    monitor-exit p0

    return-void

    :catchall_0
    move-exception p1

    monitor-exit p0

    throw p1
.end method

.method public declared-synchronized a(Ljava/util/List;)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Les/g8;",
            ">;)V"
        }
    .end annotation

    monitor-enter p0

    .line 34
    :try_start_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/media/a;->n:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 35
    monitor-exit p0

    return-void

    :catchall_0
    move-exception p1

    monitor-exit p0

    throw p1
.end method

.method public declared-synchronized b(Landroid/util/Pair;)J
    .locals 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/util/Pair<",
            "Ljava/lang/Long;",
            "Ljava/lang/Long;",
            ">;)J"
        }
    .end annotation

    monitor-enter p0

    .line 11
    :try_start_0
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/media/a;->a:Z

    if-eqz v0, :cond_0

    .line 12
    iget-wide v0, p0, Lcom/esfile/screen/recorder/media/a;->h:J
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit p0

    return-wide v0

    .line 13
    :cond_0
    :try_start_1
    iget-object v0, p0, Lcom/esfile/screen/recorder/media/a;->d:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    const-wide/16 v0, 0x0

    .line 14
    iput-wide v0, p0, Lcom/esfile/screen/recorder/media/a;->h:J

    .line 15
    invoke-virtual {p0, p1}, Lcom/esfile/screen/recorder/media/a;->a(Landroid/util/Pair;)J

    move-result-wide v0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    monitor-exit p0

    return-wide v0

    :catchall_0
    move-exception p1

    monitor-exit p0

    throw p1
.end method

.method public b()V
    .locals 1

    .line 22
    iget-object v0, p0, Lcom/esfile/screen/recorder/media/a;->w:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    return-void
.end method

.method public b(I)V
    .locals 3

    if-eqz p1, :cond_1

    const/16 v0, 0x5a

    if-eq p1, v0, :cond_1

    const/16 v0, 0xb4

    if-eq p1, v0, :cond_1

    const/16 v0, 0x10e

    if-ne p1, v0, :cond_0

    goto :goto_0

    .line 20
    :cond_0
    new-instance v0, Ljava/lang/IllegalArgumentException;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "Unsupported angle: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 21
    :cond_1
    :goto_0
    iput p1, p0, Lcom/esfile/screen/recorder/media/a;->t:I

    return-void
.end method

.method public b(Ljava/lang/Object;J)V
    .locals 6

    .line 23
    sget-object v4, Lcom/esfile/screen/recorder/media/util/ScaleTypeUtil$ScaleType;->FIT_XY:Lcom/esfile/screen/recorder/media/util/ScaleTypeUtil$ScaleType;

    const/4 v5, 0x1

    move-object v0, p0

    move-object v1, p1

    move-wide v2, p2

    invoke-virtual/range {v0 .. v5}, Lcom/esfile/screen/recorder/media/a;->b(Ljava/lang/Object;JLcom/esfile/screen/recorder/media/util/ScaleTypeUtil$ScaleType;Z)V

    return-void
.end method

.method public b(Ljava/lang/Object;JLcom/esfile/screen/recorder/media/util/ScaleTypeUtil$ScaleType;Z)V
    .locals 8

    const-wide/16 v2, 0x0

    move-object v0, p0

    move-object v1, p1

    move-wide v4, p2

    move-object v6, p4

    move v7, p5

    .line 24
    invoke-direct/range {v0 .. v7}, Lcom/esfile/screen/recorder/media/a;->a(Ljava/lang/Object;JJLcom/esfile/screen/recorder/media/util/ScaleTypeUtil$ScaleType;Z)Lcom/esfile/screen/recorder/media/c$f;

    move-result-object p1

    if-eqz p1, :cond_0

    .line 25
    iget-object p2, p0, Lcom/esfile/screen/recorder/media/a;->x:Ljava/util/List;

    invoke-interface {p2, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :cond_0
    return-void
.end method

.method public declared-synchronized b(Ljava/util/List;)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Les/ba;",
            ">;)V"
        }
    .end annotation

    monitor-enter p0

    .line 16
    :try_start_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/media/a;->m:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    if-eqz p1, :cond_0

    .line 17
    invoke-interface {p1}, Ljava/util/List;->isEmpty()Z

    move-result v0

    if-nez v0, :cond_0

    .line 18
    iget-object v0, p0, Lcom/esfile/screen/recorder/media/a;->m:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 19
    :cond_0
    monitor-exit p0

    return-void

    :catchall_0
    move-exception p1

    monitor-exit p0

    throw p1
.end method

.method public declared-synchronized b(Ljava/lang/String;)Z
    .locals 4

    monitor-enter p0

    .line 2
    :try_start_0
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_1

    new-instance v0, Ljava/io/File;

    invoke-direct {v0, p1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 3
    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v0

    if-nez v0, :cond_0

    goto :goto_0

    .line 4
    :cond_0
    iput-object p1, p0, Lcom/esfile/screen/recorder/media/a;->b:Ljava/lang/String;

    .line 5
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/media/a;->c(Ljava/lang/String;)V

    .line 6
    iget-wide v0, p0, Lcom/esfile/screen/recorder/media/a;->g:J

    iput-wide v0, p0, Lcom/esfile/screen/recorder/media/a;->h:J

    .line 7
    iget-object p1, p0, Lcom/esfile/screen/recorder/media/a;->d:Ljava/util/List;

    new-instance v0, Landroid/util/Pair;

    const-wide/16 v1, 0x0

    invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v1

    iget-wide v2, p0, Lcom/esfile/screen/recorder/media/a;->h:J

    invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v2

    invoke-direct {v0, v1, v2}, Landroid/util/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V

    invoke-interface {p1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 8
    iget-boolean p1, p0, Lcom/esfile/screen/recorder/media/a;->f:Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit p0

    return p1

    :cond_1
    :goto_0
    :try_start_1
    const-string v0, "dcr"

    .line 9
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "[setSourcePath] source path<"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p1, "> error"

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-static {v0, p1}, Lcom/esfile/screen/recorder/media/util/k;->a(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    const/4 p1, 0x0

    .line 10
    monitor-exit p0

    return p1

    :catchall_0
    move-exception p1

    monitor-exit p0

    throw p1
.end method

.method public declared-synchronized c(Ljava/util/List;)J
    .locals 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "+",
            "Landroid/util/Pair<",
            "Ljava/lang/Long;",
            "Ljava/lang/Long;",
            ">;>;)J"
        }
    .end annotation

    monitor-enter p0

    .line 20
    :try_start_0
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/media/a;->a:Z

    if-eqz v0, :cond_0

    .line 21
    iget-wide v0, p0, Lcom/esfile/screen/recorder/media/a;->h:J
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit p0

    return-wide v0

    .line 22
    :cond_0
    :try_start_1
    iget-object v0, p0, Lcom/esfile/screen/recorder/media/a;->d:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    const-wide/16 v0, 0x0

    if-eqz p1, :cond_2

    .line 23
    invoke-interface {p1}, Ljava/util/List;->isEmpty()Z

    move-result v2

    if-eqz v2, :cond_1

    goto :goto_1

    .line 24
    :cond_1
    iput-wide v0, p0, Lcom/esfile/screen/recorder/media/a;->h:J

    .line 25
    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :goto_0
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_3

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/util/Pair;

    .line 26
    invoke-virtual {p0, v0}, Lcom/esfile/screen/recorder/media/a;->a(Landroid/util/Pair;)J

    goto :goto_0

    .line 27
    :cond_2
    :goto_1
    iget-object p1, p0, Lcom/esfile/screen/recorder/media/a;->d:Ljava/util/List;

    new-instance v2, Landroid/util/Pair;

    invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v0

    iget-wide v3, p0, Lcom/esfile/screen/recorder/media/a;->g:J

    invoke-static {v3, v4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v1

    invoke-direct {v2, v0, v1}, Landroid/util/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V

    invoke-interface {p1, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 28
    iget-wide v0, p0, Lcom/esfile/screen/recorder/media/a;->g:J

    iput-wide v0, p0, Lcom/esfile/screen/recorder/media/a;->h:J

    .line 29
    :cond_3
    iget-wide v0, p0, Lcom/esfile/screen/recorder/media/a;->h:J
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    monitor-exit p0

    return-wide v0

    :catchall_0
    move-exception p1

    monitor-exit p0

    goto :goto_3

    :goto_2
    throw p1

    :goto_3
    goto :goto_2
.end method

.method public c()V
    .locals 1

    .line 30
    iget-object v0, p0, Lcom/esfile/screen/recorder/media/a;->x:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    return-void
.end method

.method public d()I
    .locals 1

    .line 4
    iget v0, p0, Lcom/esfile/screen/recorder/media/a;->q:I

    return v0
.end method

.method public declared-synchronized d(Ljava/util/List;)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Les/s7;",
            ">;)V"
        }
    .end annotation

    monitor-enter p0

    .line 1
    :try_start_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/media/a;->o:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    if-eqz p1, :cond_0

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/media/a;->o:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 3
    :cond_0
    monitor-exit p0

    return-void

    :catchall_0
    move-exception p1

    monitor-exit p0

    throw p1
.end method

.method public declared-synchronized e()I
    .locals 2

    monitor-enter p0

    .line 1
    :try_start_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/media/a;->b:Ljava/lang/String;

    if-eqz v0, :cond_0

    .line 2
    iget-wide v0, p0, Lcom/esfile/screen/recorder/media/a;->g:J
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    long-to-int v1, v0

    monitor-exit p0

    return v1

    .line 3
    :cond_0
    :try_start_1
    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v1, "You must call setSourcePath first!"

    invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public declared-synchronized e(Ljava/util/List;)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Les/g8;",
            ">;)V"
        }
    .end annotation

    monitor-enter p0

    .line 4
    :try_start_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/media/a;->n:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    if-eqz p1, :cond_0

    .line 5
    iget-object v0, p0, Lcom/esfile/screen/recorder/media/a;->n:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 6
    :cond_0
    monitor-exit p0

    return-void

    :catchall_0
    move-exception p1

    monitor-exit p0

    throw p1
.end method

.method public declared-synchronized f()Lcom/esfile/screen/recorder/media/util/y;
    .locals 3

    monitor-enter p0

    .line 1
    :try_start_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/media/a;->b:Ljava/lang/String;

    if-eqz v0, :cond_0

    .line 2
    new-instance v0, Lcom/esfile/screen/recorder/media/util/y;

    iget v1, p0, Lcom/esfile/screen/recorder/media/a;->k:I

    iget v2, p0, Lcom/esfile/screen/recorder/media/a;->l:I

    invoke-direct {v0, v1, v2}, Lcom/esfile/screen/recorder/media/util/y;-><init>(II)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit p0

    return-object v0

    .line 3
    :cond_0
    :try_start_1
    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v1, "You must call setSourcePath first!"

    invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public declared-synchronized f(Ljava/util/List;)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Les/da;",
            ">;)V"
        }
    .end annotation

    monitor-enter p0

    .line 4
    :try_start_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/media/a;->p:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    if-eqz p1, :cond_0

    .line 5
    iget-object v0, p0, Lcom/esfile/screen/recorder/media/a;->p:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 6
    :cond_0
    monitor-exit p0

    return-void

    :catchall_0
    move-exception p1

    monitor-exit p0

    throw p1
.end method

.method public declared-synchronized g()I
    .locals 18

    move-object/from16 v1, p0

    monitor-enter p0

    .line 1
    :try_start_0
    iget-boolean v0, v1, Lcom/esfile/screen/recorder/media/a;->a:Z

    if-eqz v0, :cond_0

    const-string v0, "dcr"

    .line 2
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "[start] source path<"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v3, v1, Lcom/esfile/screen/recorder/media/a;->b:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v3, "> error: cut has started"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v0, v2}, Lcom/esfile/screen/recorder/media/util/k;->a(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    const/4 v0, 0x2

    .line 3
    monitor-exit p0

    return v0

    .line 4
    :cond_0
    :try_start_1
    iget-object v0, v1, Lcom/esfile/screen/recorder/media/a;->b:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    const/4 v2, 0x0

    const/4 v3, 0x1

    if-nez v0, :cond_8

    new-instance v0, Ljava/io/File;

    iget-object v4, v1, Lcom/esfile/screen/recorder/media/a;->b:Ljava/lang/String;

    invoke-direct {v0, v4}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 5
    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v0

    if-nez v0, :cond_1

    goto/16 :goto_4

    :cond_1
    const-wide/high16 v4, 0x3ff0000000000000L    # 1.0

    .line 6
    iget-wide v6, v1, Lcom/esfile/screen/recorder/media/a;->h:J
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    long-to-double v6, v6

    invoke-static {v6, v7}, Ljava/lang/Double;->isNaN(D)Z

    mul-double v6, v6, v4

    :try_start_2
    iget-wide v4, v1, Lcom/esfile/screen/recorder/media/a;->g:J
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    const-wide/16 v8, 0x1

    add-long/2addr v4, v8

    long-to-double v4, v4

    invoke-static {v4, v5}, Ljava/lang/Double;->isNaN(D)Z

    div-double/2addr v6, v4

    :try_start_3
    new-instance v0, Ljava/io/File;

    iget-object v4, v1, Lcom/esfile/screen/recorder/media/a;->b:Ljava/lang/String;

    invoke-direct {v0, v4}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 7
    invoke-virtual {v0}, Ljava/io/File;->length()J

    move-result-wide v4
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    long-to-double v4, v4

    invoke-static {v4, v5}, Ljava/lang/Double;->isNaN(D)Z

    mul-double v6, v6, v4

    double-to-long v4, v6

    const-wide/32 v6, 0x1400000

    add-long/2addr v4, v6

    :try_start_4
    const-string v0, "dcr"

    .line 8
    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    const-string v7, "start cut and request size (KB):"

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-wide/16 v7, 0x400

    div-long v7, v4, v7

    invoke-virtual {v6, v7, v8}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-static {v0, v6}, Lcom/esfile/screen/recorder/media/util/k;->c(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_0

    const-wide v6, 0xffffffffL

    cmp-long v0, v4, v6

    if-lez v0, :cond_2

    const/4 v0, 0x4

    .line 9
    monitor-exit p0

    return v0

    .line 10
    :cond_2
    :try_start_5
    iget-object v0, v1, Lcom/esfile/screen/recorder/media/a;->c:Ljava/lang/String;

    invoke-static {v0, v4, v5}, Lcom/esfile/screen/recorder/media/util/h;->a(Ljava/lang/String;J)Z

    move-result v0
    :try_end_5
    .catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_0
    .catchall {:try_start_5 .. :try_end_5} :catchall_0

    if-nez v0, :cond_3

    const/4 v0, 0x3

    .line 11
    monitor-exit p0

    return v0

    .line 12
    :cond_3
    :try_start_6
    iput-boolean v3, v1, Lcom/esfile/screen/recorder/media/a;->a:Z

    .line 13
    invoke-direct/range {p0 .. p0}, Lcom/esfile/screen/recorder/media/a;->h()V

    .line 14
    new-instance v0, Ljava/io/File;

    iget-object v4, v1, Lcom/esfile/screen/recorder/media/a;->c:Ljava/lang/String;

    invoke-direct {v0, v4}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-static {v0}, Lcom/esfile/screen/recorder/media/util/j;->a(Ljava/io/File;)Z

    .line 15
    iget-object v0, v1, Lcom/esfile/screen/recorder/media/a;->j:Lcom/esfile/screen/recorder/media/c;

    const/4 v4, 0x0

    if-eqz v0, :cond_4

    .line 16
    iget-object v0, v1, Lcom/esfile/screen/recorder/media/a;->j:Lcom/esfile/screen/recorder/media/c;

    invoke-virtual {v0, v4}, Lcom/esfile/screen/recorder/media/c;->a(Lcom/esfile/screen/recorder/media/c$g;)V

    .line 17
    iget-object v0, v1, Lcom/esfile/screen/recorder/media/a;->j:Lcom/esfile/screen/recorder/media/c;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/media/c;->a()V

    .line 18
    :cond_4
    new-instance v0, Lcom/esfile/screen/recorder/media/c;

    invoke-direct {v0}, Lcom/esfile/screen/recorder/media/c;-><init>()V

    iput-object v0, v1, Lcom/esfile/screen/recorder/media/a;->j:Lcom/esfile/screen/recorder/media/c;

    .line 19
    iget-object v5, v1, Lcom/esfile/screen/recorder/media/a;->m:Ljava/util/List;

    invoke-virtual {v0, v5}, Lcom/esfile/screen/recorder/media/c;->a(Ljava/util/List;)V

    .line 20
    iget-object v0, v1, Lcom/esfile/screen/recorder/media/a;->j:Lcom/esfile/screen/recorder/media/c;

    iget-object v5, v1, Lcom/esfile/screen/recorder/media/a;->n:Ljava/util/List;

    invoke-virtual {v0, v5}, Lcom/esfile/screen/recorder/media/c;->c(Ljava/util/List;)V

    .line 21
    iget-object v0, v1, Lcom/esfile/screen/recorder/media/a;->j:Lcom/esfile/screen/recorder/media/c;

    iget-object v5, v1, Lcom/esfile/screen/recorder/media/a;->o:Ljava/util/List;

    invoke-virtual {v0, v5}, Lcom/esfile/screen/recorder/media/c;->b(Ljava/util/List;)V

    .line 22
    iget-object v0, v1, Lcom/esfile/screen/recorder/media/a;->j:Lcom/esfile/screen/recorder/media/c;

    iget v5, v1, Lcom/esfile/screen/recorder/media/a;->q:I

    invoke-virtual {v0, v5}, Lcom/esfile/screen/recorder/media/c;->a(I)V

    .line 23
    iget-object v0, v1, Lcom/esfile/screen/recorder/media/a;->j:Lcom/esfile/screen/recorder/media/c;

    iget v5, v1, Lcom/esfile/screen/recorder/media/a;->r:I

    iget v6, v1, Lcom/esfile/screen/recorder/media/a;->s:I

    invoke-virtual {v0, v5, v6}, Lcom/esfile/screen/recorder/media/c;->a(II)V

    .line 24
    iget-object v0, v1, Lcom/esfile/screen/recorder/media/a;->j:Lcom/esfile/screen/recorder/media/c;

    iget-object v5, v1, Lcom/esfile/screen/recorder/media/a;->y:Lcom/esfile/screen/recorder/media/c$g;

    invoke-virtual {v0, v5}, Lcom/esfile/screen/recorder/media/c;->a(Lcom/esfile/screen/recorder/media/c$g;)V

    .line 25
    new-instance v0, Ljava/util/ArrayList;

    iget-object v5, v1, Lcom/esfile/screen/recorder/media/a;->d:Ljava/util/List;

    invoke-interface {v5}, Ljava/util/List;->size()I

    move-result v5

    invoke-direct {v0, v5}, Ljava/util/ArrayList;-><init>(I)V

    .line 26
    iget-object v5, v1, Lcom/esfile/screen/recorder/media/a;->d:Ljava/util/List;

    invoke-interface {v5}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v5

    :goto_0
    invoke-interface {v5}, Ljava/util/Iterator;->hasNext()Z

    move-result v6

    if-eqz v6, :cond_5

    invoke-interface {v5}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Landroid/util/Pair;

    .line 27
    new-instance v15, Lcom/esfile/screen/recorder/media/c$f;

    iget-object v8, v1, Lcom/esfile/screen/recorder/media/a;->b:Ljava/lang/String;

    iget-object v7, v6, Landroid/util/Pair;->first:Ljava/lang/Object;

    check-cast v7, Ljava/lang/Long;

    .line 28
    invoke-virtual {v7}, Ljava/lang/Long;->longValue()J

    move-result-wide v9

    const-wide/16 v11, 0x3e8

    mul-long v9, v9, v11

    iget-object v6, v6, Landroid/util/Pair;->second:Ljava/lang/Object;

    check-cast v6, Ljava/lang/Long;

    invoke-virtual {v6}, Ljava/lang/Long;->longValue()J

    move-result-wide v6

    mul-long v11, v11, v6

    iget v13, v1, Lcom/esfile/screen/recorder/media/a;->e:F

    iget v14, v1, Lcom/esfile/screen/recorder/media/a;->t:I

    iget-object v6, v1, Lcom/esfile/screen/recorder/media/a;->v:Landroid/graphics/RectF;

    iget-boolean v7, v1, Lcom/esfile/screen/recorder/media/a;->u:Z

    iget-object v4, v1, Lcom/esfile/screen/recorder/media/a;->p:Ljava/util/List;

    move/from16 v16, v7

    move-object v7, v15

    move-object v3, v15

    move-object v15, v6

    move-object/from16 v17, v4

    invoke-direct/range {v7 .. v17}, Lcom/esfile/screen/recorder/media/c$f;-><init>(Ljava/lang/Object;JJFILandroid/graphics/RectF;ZLjava/util/List;)V

    .line 29
    invoke-interface {v0, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    const/4 v3, 0x1

    const/4 v4, 0x0

    goto :goto_0

    .line 30
    :cond_5
    invoke-interface {v0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/esfile/screen/recorder/media/c$f;

    .line 31
    iget-object v4, v1, Lcom/esfile/screen/recorder/media/a;->w:Ljava/util/List;

    invoke-interface {v4}, Ljava/util/List;->size()I

    move-result v4

    const/4 v5, 0x1

    sub-int/2addr v4, v5

    :goto_1
    if-ltz v4, :cond_7

    .line 32
    iget-object v5, v1, Lcom/esfile/screen/recorder/media/a;->w:Ljava/util/List;

    invoke-interface {v5, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Lcom/esfile/screen/recorder/media/c$f;

    .line 33
    iget-object v6, v1, Lcom/esfile/screen/recorder/media/a;->w:Ljava/util/List;

    invoke-interface {v6}, Ljava/util/List;->size()I

    move-result v6

    const/4 v7, 0x1

    sub-int/2addr v6, v7

    if-ne v4, v6, :cond_6

    .line 34
    iget-object v6, v5, Lcom/esfile/screen/recorder/media/c$f;->l:Les/b8;

    iput-object v6, v3, Lcom/esfile/screen/recorder/media/c$f;->l:Les/b8;

    :goto_2
    const/4 v6, 0x0

    goto :goto_3

    .line 35
    :cond_6
    iget-object v6, v1, Lcom/esfile/screen/recorder/media/a;->w:Ljava/util/List;

    add-int/lit8 v7, v4, 0x1

    invoke-interface {v6, v7}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Lcom/esfile/screen/recorder/media/c$f;

    .line 36
    iget-object v7, v5, Lcom/esfile/screen/recorder/media/c$f;->l:Les/b8;

    iput-object v7, v6, Lcom/esfile/screen/recorder/media/c$f;->l:Les/b8;

    goto :goto_2

    .line 37
    :goto_3
    iput-object v6, v5, Lcom/esfile/screen/recorder/media/c$f;->l:Les/b8;

    add-int/lit8 v4, v4, -0x1

    goto :goto_1

    .line 38
    :cond_7
    iget-object v3, v1, Lcom/esfile/screen/recorder/media/a;->w:Ljava/util/List;

    invoke-interface {v0, v2, v3}, Ljava/util/List;->addAll(ILjava/util/Collection;)Z

    .line 39
    iget-object v3, v1, Lcom/esfile/screen/recorder/media/a;->x:Ljava/util/List;

    invoke-interface {v0, v3}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    .line 40
    iget-object v3, v1, Lcom/esfile/screen/recorder/media/a;->j:Lcom/esfile/screen/recorder/media/c;

    iget-object v4, v1, Lcom/esfile/screen/recorder/media/a;->c:Ljava/lang/String;

    invoke-virtual {v3, v4, v0}, Lcom/esfile/screen/recorder/media/c;->a(Ljava/lang/String;Ljava/util/List;)I
    :try_end_6
    .catchall {:try_start_6 .. :try_end_6} :catchall_0

    .line 41
    monitor-exit p0

    return v2

    :catch_0
    const/4 v0, 0x5

    .line 42
    monitor-exit p0

    return v0

    :cond_8
    :goto_4
    :try_start_7
    const-string v0, "dcr"

    .line 43
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "[start] source path<"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v4, v1, Lcom/esfile/screen/recorder/media/a;->b:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v4, "> error"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v0, v3}, Lcom/esfile/screen/recorder/media/util/k;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 44
    iput-boolean v2, v1, Lcom/esfile/screen/recorder/media/a;->a:Z
    :try_end_7
    .catchall {:try_start_7 .. :try_end_7} :catchall_0

    .line 45
    monitor-exit p0

    const/4 v0, 0x1

    return v0

    :catchall_0
    move-exception v0

    monitor-exit p0

    goto :goto_6

    :goto_5
    throw v0

    :goto_6
    goto :goto_5
.end method
